package com.mes.device.mapper;

import java.util.List;
import com.mes.device.domain.DeviceMaintenance;

/**
 * 设备保养Mapper接口
 * 
 * @author itflash
 * @date 2025-02-27
 */
public interface DeviceMaintenanceMapper 
{
    /**
     * 查询设备保养
     * 
     * @param id 设备保养主键
     * @return 设备保养
     */
    public DeviceMaintenance selectDeviceMaintenanceById(Long id);

    /**
     * 查询设备保养列表
     * 
     * @param deviceMaintenance 设备保养
     * @return 设备保养集合
     */
    public List<DeviceMaintenance> selectDeviceMaintenanceList(DeviceMaintenance deviceMaintenance);

    /**
     * 新增设备保养
     * 
     * @param deviceMaintenance 设备保养
     * @return 结果
     */
    public int insertDeviceMaintenance(DeviceMaintenance deviceMaintenance);

    /**
     * 修改设备保养
     * 
     * @param deviceMaintenance 设备保养
     * @return 结果
     */
    public int updateDeviceMaintenance(DeviceMaintenance deviceMaintenance);

    /**
     * 删除设备保养
     * 
     * @param id 设备保养主键
     * @return 结果
     */
    public int deleteDeviceMaintenanceById(Long id);

    /**
     * 批量删除设备保养
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDeviceMaintenanceByIds(Long[] ids);
}
